package pages;

import org.openqa.selenium.WebDriver;
import selenium.WebDriverWrapper;

public abstract class BasePage {

    protected String URL = "http://rozetka.com.ua/";
    protected WebDriverWrapper driver;

    public BasePage(WebDriverWrapper driver){
        this.driver = driver;

    }

    public void Open(){
        driver.get(URL);
    }

    public boolean isOpened(){
        return driver.getCurrentUrl().equals(URL);
    };
}
